package com.yikaiye.android.yikaiye.model;

import java.util.List;

public class UserModel {
    private String accessToken;
    private String avatar;
    private String phone;
    private String userId;
    private String username;
    private String number;
    private String verifyToken;
    private String userDetailId;
    private String companyName;
    private String mobile;
    /**
     * 判断用户是否修改过名字  （0-未修改，1-修改）
     */
    private int userNameStatus;
    /**
     * 消息数量
     */
    private int messagCount;
    private boolean forceLogout;
    /**
     * 法大大认证状态（1-处理中；0-处理成功；2-处理失败；3-未开始实名认证；4-人工审核中）
     */
    private int authentication = -1;

    /**
     * 关联手机号码 -> mergeTels 长度大于1，表示需要显示合并
     */
    private List<MergeTelModel> mergeTels;
    /**
     * 客户信息（auditStatus 审核状态：1：待审核，2：审核通过，3：审核失败）
     */
    private CustomerModel customer;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getVerifyToken() {
        return verifyToken;
    }

    public void setVerifyToken(String verifyToken) {
        this.verifyToken = verifyToken;
    }

    public String getUserDetailId() {
        return userDetailId;
    }

    public void setUserDetailId(String userDetailId) {
        this.userDetailId = userDetailId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getUserNameStatus() {
        return userNameStatus;
    }

    public void setUserNameStatus(int userNameStatus) {
        this.userNameStatus = userNameStatus;
    }

    public int getMessagCount() {
        return messagCount;
    }

    public void setMessagCount(int messagCount) {
        this.messagCount = messagCount;
    }

    public boolean isForceLogout() {
        return forceLogout;
    }

    public void setForceLogout(boolean forceLogout) {
        this.forceLogout = forceLogout;
    }

    public int getAuthentication() {
        return authentication;
    }

    public void setAuthentication(int authentication) {
        this.authentication = authentication;
    }

    public List<MergeTelModel> getMergeTels() {
        return mergeTels;
    }

    public void setMergeTels(List<MergeTelModel> mergeTels) {
        this.mergeTels = mergeTels;
    }

    public CustomerModel getCustomer() {
        return customer;
    }

    public void setCustomer(CustomerModel customer) {
        this.customer = customer;
    }

    public static class MergeTelModel {
        private String id;
        private String telNumber;
        /**
         * 0未合并，1已合并
         */
        private int mappingStatus;

        public MergeTelModel(String telNumber) {
            this.telNumber = telNumber;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTelNumber() {
            return telNumber;
        }

        public void setTelNumber(String telNumber) {
            this.telNumber = telNumber;
        }

        public int getMappingStatus() {
            return mappingStatus;
        }

        public void setMappingStatus(int mappingStatus) {
            this.mappingStatus = mappingStatus;
        }
    }

    public static class CustomerModel {
        private String id;
        private String customerName;
        private String customerPhone;
        /**
         * auditStatus 审核状态：1：待审核，2：审核通过，3：审核失败
         */
        private int auditStatus;
        /**
         * 性别字段取值客户gender：1男，2女，3未知
         */
        private int gender;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCustomerName() {
            return customerName;
        }

        public void setCustomerName(String customerName) {
            this.customerName = customerName;
        }

        public String getCustomerPhone() {
            return customerPhone;
        }

        public void setCustomerPhone(String customerPhone) {
            this.customerPhone = customerPhone;
        }

        public int getAuditStatus() {
            return auditStatus;
        }

        public void setAuditStatus(int auditStatus) {
            this.auditStatus = auditStatus;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }
    }
}
